package shop.services.front.offlineAccount.impl;

import org.springframework.stereotype.Service;
import shop.core.ServicesManager;
import shop.services.front.offline.dao.OfflineDao;
import shop.services.front.offlineAccount.OfflineAccountService;
import shop.services.front.offlineAccount.bean.OfflineAccount;
import shop.services.front.offlineAccount.dao.OfflineAccountDao;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/4/22.
 */
@Service("offlineAccountServiceFront")
public class OfflineAccountServiceImpl extends ServicesManager<OfflineAccount, OfflineAccountDao> implements OfflineAccountService {
    @Resource(name = "offlineAccountDaoFront")
    @Override
    public void setDao(OfflineAccountDao offlineAccountDao) {
        this.dao=offlineAccountDao;
    }
    @Resource(name="offlineDaoFront")
    private OfflineDao offlineDao;
    @Override
    public List<OfflineAccount> selectListByAccount(OfflineAccount offlineAccount) {
        return dao.selectListByAccount(offlineAccount);
    }

    @Override
    public List<OfflineAccount> selectListByOffline(OfflineAccount offlineAccount) {
        return dao.selectListByOffline(offlineAccount);
    }

    @Override
    public int insert(OfflineAccount offlineAccount) {
        return dao.insert(offlineAccount);
    }
}
